<!--
  @author heguanghua
  @since 2019/06/12 11:57
-->
<!DOCTYPE html SYSTEM "http://www.thymeleaf.org/dtd/xhtml1-strict-thymeleaf-4.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:th="http://www.thymeleaf.org">
<head th:include="common/common :: jscss2"/>
<body>

<div class="layui-fluid">

    <blockquote class="layui-crumb">
        渠道管理>
        <a lay-href="/channel/list.action">渠道管理</a>>复制渠道信息
    </blockquote>

    <div class="layui-card">

        <div class="layui-card-body">

            <form method="POST" action="" class="layui-form" lay-filter="zmn-form">
                <div class="layui-field-box" style="color: #9F9F9F; margin-bottom: 30px;">
                    <td style="" valign="top">【温馨提示】</br></td>
                    <td>
                        <div style="margin-left: 40px">
                            <p>
                                1、原渠道名称指：要复制渠道信息的名称</br>
                                2、复制类型</br>
                                （1）复制成为新渠道指：针对原渠道信息复制成为一个新渠道</br>
                                （2）复制信息至现有渠道指：原渠道信息复制至系统已经存在的渠道</br>
                                3、新渠道名称指：复制成功的新渠道名称</br>
                                4、目标渠道名称：原渠道信息复制到该渠道</br>
                                5、复制范围</br>
                                （1）复制成为新渠道默认复制为原渠道的全部信息</br>
                                （2）复制信息至现有渠道可以复制信息为：工单视频、开通分类&产品&区域</br>
                            </p>
                        </div>
                    </td>
                </div>
                <div class="layui-form-item">
                    <label class="layui-form-label layui-form-required">原渠道名称：</label>
                    <div class="layui-input-inline" >
                        <div id="channelOneId1"></div>
                    </div>
                    <div class="layui-input-inline" >
                        <div id="originalChannelId"></div>
                    </div>
                </div>
                <div class="layui-form-item">
                    <label class="layui-form-label layui-form-required">复制类型：</label>
                    <div class="layui-input-inline" style="width:400px">
                        <input type="radio" lay-filter="copyType" name="copyType" value="1" title="复制成为新渠道" lay-verify="required">
                        <input type="radio" lay-filter="copyType" name="copyType" value="2" title="复制信息至现有渠道" lay-verify="required">
                    </div>
                </div>
                <div class="layui-form-item" id="newChannelNameDiv" hidden>
                    <label class="layui-form-label layui-form-required">新渠道名称：</label>
                    <div class="layui-input-inline" style="width:390px">
                        <input class="layui-input" type="text" name="newChannelName" id="newChannelName"
                               placeholder="请输入新渠道名称" autocomplete="off" maxlength="50"/>
                    </div>
                </div>
                <div class="layui-form-item" id="targetChannelDiv" hidden>
                    <label class="layui-form-label layui-form-required">目标渠道名称：</label>
                    <div class="layui-input-inline" >
                        <div id="channelOneId2"></div>
                    </div>
                    <div class="layui-input-inline" >
                        <div id="targetChannelIdList"></div>
                    </div>
                </div>
                <div class="layui-form-item" id="rangeIdListDiv" hidden>
                    <label class="layui-form-label layui-form-required">复制范围：</label>
                    <div class="layui-input-inline" id="rangeIdList" style="width:390px">
                        <input type="checkbox" name="rangeIdList" value="1" title="工单视频">
                        <input type="checkbox" name="rangeIdList" value="2" title="开通分类&产品&区域">
                    </div>
                </div>

                <div class="layui-form-item submit">
                    <div class="layui-input-block">
                        <a class="layui-btn" lay-submit="" lay-filter="zmn-form-submit">确认复制</a>
                        <button class="layui-btn layui-btn-primary cancel">取消</button>
                    </div>
                </div>

            </form>
        </div>
    </div>

</div>
</body>
</html>

<script type="text/javascript" th:inline="javascript">

    layui.config({
        base: "/static/lay/",
        version: 202007201746
    }).extend({
        index: "lib/index",
        channel_copy: "channel/zmn.plat.channel.copy",
    }).use(['index', 'channel_copy']);

</script>
